<!DOCTYPE html>
<html>
<head>
    <title>门店产品阶梯价</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset">
                        <i class="fa fa-refresh"></i>
                    </a>
                </div>&nbsp;&nbsp;&nbsp;
                <a class="btn btn-primary btn-sm " @click="query">
                    <i class="fa fa-search"></i>&nbsp;查询</a>
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.productName" placeholder="商品名称">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.sellerId">
                        <option value="">门店</option>
                        <option v-for="item in selfShopEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.goodsType">
                        <option value="">商品类型</option>
                        <option v-for="item in goodsTypeEnum" :value="item.value">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <#if shiro.hasPermission("mercharReport:storeproductprice:save")>
                <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </#if>
            <#if shiro.hasPermission("mercharReport:storeproductprice:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        </#if>
        <#if shiro.hasPermission("mercharReport:storeproductprice:delete")>
        <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
    </#if>
    </form>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">产品id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.productId" placeholder="产品id" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商户id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.sellerId" placeholder="商户id" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价格</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.price" placeholder="价格" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">阶梯价</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.stepPrice" placeholder="阶梯价" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">备注</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.marks" placeholder="备注" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">更新人</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.updateName" placeholder="更新人" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">更新时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.updateTime" placeholder="更新时间" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">伪删除标记（0正常 1删除）</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.del" placeholder="伪删除标记（0正常 1删除）" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">创建人</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.createName" placeholder="创建人" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">创建时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.createTime" placeholder="创建时间" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">起步价格</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="storeProductPrice.startPrice" placeholder="起步价格" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定" />
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回" />
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/report/storeproductprice.js?_${.now?long}"></script>
</body>
</html>
